package com.homework.hw1102.test4;

import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Company company = new Company();
        Emp s1 = new Manager("小明", 8000, 0 ,500);
        Emp s2 = new Clerk("小亮", 6000, 0);


        for (int i = 0; i <= 3; i++) {
            if(i == 0) {
                System.out.println("===期初薪资===");
            } else {
                System.out.println("===第" + i + "个月===");
            }
            company.salary(s1, i);
            company.salary(s2, i);
        }

    }
}
